package com.jlx.jlxmall.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


/**
 * 1、bootstrap.properties 配置nacos的注册中心地址等
 * 2、编写网关配置文件(放在了nacos中)
 * 3、排除数据源有关的配置 DataSourceAutoConfiguration
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class JlxmallGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(JlxmallGatewayApplication.class, args);
    }

}